﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TTLine.ascx.cs" Inherits="ZF.WS.UserControls.TTLine" %>
<div class="ttline">
    <div class="fl_">
        <div>
            <div id="frmLogin" runat="server"  style="text-align: left; width: 500px; ">
            
                &nbsp;用户名：<input type="text" name="account"  id="qlacc"  value="" class="stxt" />&nbsp;密 码：
                <input type="password" value="" name="password" id="qlpwd" class="stxt" />&nbsp;
                <a href="javascript:" class="alogo">[登 录]</a>
                <a href="/Person/getpwd.aspx">[忘记密码]</a>&nbsp; <a href="/Register.aspx" class="fc2">免费注册</a>
            </div>
            <div runat="server" id="divWelcome"  style="text-align: left; width: 500px; padding-top:5px;">
                &nbsp;<img src="/image/top_ico.gif" /></span>欢迎您： <span class="fc2 fw_">
                    <%=this.Member.Account %></span>
                    
                    <span class="<%=url.IndexOf("person")!=-1?"":"dn_" %>">
                     登陆个人会员中心  
                    </span>
                <span class="<%=url.IndexOf("person") != -1 || url.IndexOf("/index.aspx")==-1 ? "" : "dn_"%>">
                     [ <a href="/index.aspx" target="_parent">返回网站首页</a> ]
                     </span>
              
                    <span class="<%=url.IndexOf("person")==-1?"":"dn_" %>">
                     [ <a href="/person/frame.aspx">返回会员中心首页</a> ]
                     </span>
                     

                     
                     
                     [ <a href="/logout.aspx">退出登录</a> ]
            </div>
        </div>
    </div>
    <script>
        $(function() {
            $(".alogo").click(function() {
                var account = $("#qlacc").val();
                var pwd = $("#qlpwd").val();
                if (account == "") {
                    alert("请输入用户名");
                    return;
                }
                if (pwd == "") {
                    alert("请输入密码");
                    return;
                }

                document.forms[0].method = "post";
                document.forms[0].action = "/login.aspx"

                document.forms[0].onsubmit = function() {
                    alert(1)
                    return false;
                }
                var vs = $("#__VIEWSTATE").val();
                $("#__VIEWSTATE").val("");
                document.forms[0].submit();
                $("#__VIEWSTATE").val(vs);
                return false;

            });
        });
    
    </script>
    <div runat="server" id="scriptl" visible="false">
    <script>

        $("#qlacc").val("aoxin");
        $("#qlpwd").val("123456");
    </script>
    </div>
    <div class="fr_" style="width: 320px; padding-top:5px;">
    <img src="/image/tlicn2.gif" /><a href="/Person/space/Recharge.aspx"  target="_blank">积分充值</a> &nbsp;
        <img src="/image/tlicn3.gif" /><a  href="javascript:" onclick="SetHome(this,'<%=SiteInfo.Instance.SystemConfig.SiteUrl%>')">设为首页</a> &nbsp;
        <img src="/image/tlicn4.gif" /><a href="javascript:"   onclick="AddFavorite(window.location,document.title)" >加入收藏</a> &nbsp;
        
        <img src="/image/tlicn1.gif" /><a href="javascript:">联系我们</a></div>
</div>
<style></style>